@extends('client/layoutIndex')

@section('link')
    <link rel="stylesheet" href="{{ asset('client/css/success.css') }}">
@stop

@section('content')
    <span id="msg" style="display: none">
        @if (count($errors) > 0)
            @foreach ($errors->all() as $error)
                <div style="width: 100%;">
                    <span style="color: red;display: block;margin: 0px auto;width: 200px;text-align: center;">{{ $error }}</span>
                </div>
            @endforeach
        @endif
    </span>
    <script type="text/javascript">
        var _msg = $('#msg div span').text();
        console.log(_msg);
        if(_msg != ''){
            layer.msg(_msg);
        }
    </script>
    <div class="success">
        <div class="success-center">
            <div style="width:100%;height:30px;"></div>
            <div class="step" style="margin-left:30px;">
                <div style="width:30px;height:30px;border-radius:20px;background:#fdb713;
		                color:#fff;text-align:center;line-height:30px;float:fixed;position:relative;">
                    1</div>
                <span style="width:100px;height:3px;background:#fdb713;display:block;
		                margin-left:20px;margin-top:-15px;"></span>
                <div style="width:30px;height:30px;border-radius:20px;background:#fdb713;
		                color:#fff;text-align:center;line-height:30px;float:fixed;position:relative;
		                margin-left:120px;margin-top:-15px;">2</div>
                <span style="width:100px;height:3px;background:#fdb713;display:block;
		                margin-left:140px;margin-top:-17px;"></span>
                <div style="width:30px;height:30px;border-radius:20px;background:#fdb713;
		                color:#fff;text-align:center;line-height:30px;float:fixed;position:relative;
		                margin-left:240px;margin-top:-17px;">3</div>
                <span class="font blue" style="margin-left:-15px;"><em>购物车</em></span>
                <span class="line grey"></span>
                <span class="font grey" style="margin-left:65px;"><em>订单信息</em></span>
                <span class="line grey"></span>
                <span class="font grey" style="margin-left:65px;"><em>购物成功</em></span>
                <span class="line grey"></span>
            </div>
            <div class="content">
                <div class="success-tit">
                    <h2>兑换成功！</h2>
                </div>
                <div class="success-content">
                    <span>订单号:</span>
                    <span style="padding-right:30px;font-weight:bold;">{{ $o_id }}</span>
                    <span>您所消耗的积分为：</span>
                    <span style="font-weight:bold;">{{ $total_price }}</span>积分<br>
                    <span style="color:red;line-height: 80px;">
                        @if($get_way == 1) 验证码已发送到您的手机，请出示给现场的工作人员。
                        @elseif ($get_way == 2) 商品将于七天之内寄出，请保持手机畅通。
                        @endif
                    </span><br />
                    <a href="{{ url('/') }}">返回首页>></a>
                </div>
            </div>
        </div>
    </div>
@stop